package com.bzy.blp.upms.web.controller;

import com.bzy.blp.model.TSystemAppInfoDat;
import com.bzy.blp.upms.service.AppService;
import com.bzy.common.bean.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping(value = "/app")
public class AppController {

    @Autowired
    AppService appService;


    @GetMapping(value = "/findAppList")
    public Result findAppList() throws Exception {
        Result result = new Result();
        List<TSystemAppInfoDat> appList = appService.findAppList();
        result.setData(appList);
        return result;
    }

}
